package ai.graph;

import edu.uci.ics.jung.graph.impl.DirectedSparseVertex;
import edu.uci.ics.jung.utils.UserData;

public class WordNode extends DirectedSparseVertex {
	private String word;
	private String type;
	public WordNode(String word, String type) {
		super();
		this.word = word;
		this.type = type;
		
	    setUserDatum(GraphConstants.NAME, 
	    		type
	    		, UserData.SHARED);
	    
	    setUserDatum(GraphConstants.NAME, 
	    		word
	    		, UserData.SHARED);
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}


}
